package sy.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import sy.dao.SysProjectInformationMappingDaoI;
import sy.model.SysProjectInformationMapping;
import sy.service.SysProjectInformationMappingServiceI;

@Service("sysProjectInformationMappingService")
public class SysProjectInformationMappingServiceImpl implements SysProjectInformationMappingServiceI {
	
	private static final Logger logger = Logger.getLogger(SysProjectInformationMapping.class);
	private SysProjectInformationMappingDaoI sysProjectInformationMappingDao;


	public SysProjectInformationMappingDaoI getSysProjectInformationMappingDao() {
		return sysProjectInformationMappingDao;
	}

	@Autowired
	public void setSysProjectInformationMappingDao(SysProjectInformationMappingDaoI sysProjectInformationMappingDao) {
		this.sysProjectInformationMappingDao = sysProjectInformationMappingDao;
	}

	@Override
	public Serializable save(SysProjectInformationMapping sysProjectInformationMapping) {
		
		return sysProjectInformationMappingDao.save(sysProjectInformationMapping);
	}

	@Override
	public void remove(SysProjectInformationMapping sysProjectInformationMapping) {
		// TODO Auto-generated method stub
		sysProjectInformationMappingDao.remove(sysProjectInformationMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectInformationMappingServiceI#update(sy.model.SysProjectInformationMapping)
	 */
	@Override
	public void update(SysProjectInformationMapping sysProjectInformationMapping) {
		// TODO Auto-generated method stub
		sysProjectInformationMappingDao.update(sysProjectInformationMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectInformationMappingServiceI#list()
	 */
	@Override
	public List<SysProjectInformationMapping> list() {
		// TODO Auto-generated method stub
		return sysProjectInformationMappingDao.list();
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectInformationMappingServiceI#getSysProjectInformationMappingById(java.lang.String)
	 */
	@Override
	public SysProjectInformationMapping getSysProjectInformationMappingById(
			String id) {
		// TODO Auto-generated method stub
		return sysProjectInformationMappingDao.getSysProjectInformationMappingById(id);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysProjectInformationMappingServiceI#listSysProjectInformationMappingByKey(java.lang.String)
	 */
	@Override
	public List<SysProjectInformationMapping> listSysProjectInformationMappingByKey(
			String key) {
		// TODO Auto-generated method stub
		return sysProjectInformationMappingDao.listSysProjectInformationMappingByKey(key);
	}

	@Override
	public Serializable saveSysProjectInformationMappings(
			List<SysProjectInformationMapping> sysProjectInformationMappings) {
		// TODO Auto-generated method stub
		return sysProjectInformationMappingDao.saveSysProjectInformationMappings(sysProjectInformationMappings);
	}

	@Override
	public void removeByInformation(String informationId) {
		// TODO Auto-generated method stub
		sysProjectInformationMappingDao.removeByInformation(informationId);
	}



}
